<div class="isi">


    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Data Member Aktif</a></li>
            <li><a href="#tabs-2">Data Member Non Aktif</a></li>
        </ul>
        <div id="tabs-1" style="padding: 10px 2px 2px 2px;">

            <table id="laporan" class="display"  >
                <thead>
                    <tr>
                        <th width="5%">No</th>
                        <th width="20%">Email</th>
                        <th width="20%">Nama Member</th>
                        <th width="10%">Telp</th>
                        <th width="5%">Operasi</th>
                    </tr>            
                </thead>
                <tbody>
                    <?php
                    $n = 1;
                    $img_delete = $this->lib_button->delete_icon();
                    $img_non_aktif = $this->lib_button->deactive_icon();
                    $img_aktif = $this->lib_button->active_icon();
                    $img_lihat = $this->lib_button->lihat_icon();

                    foreach ($list_member as $dtmember) {
                        $link_lihat = anchor('admin_member/detail/' . $dtmember->id, $img_lihat);
                        $link_non_aktif = anchor('admin_member/status/' . $dtmember->id . "/0", $img_non_aktif, array('onClick' => 'return confirm(\'Apa anda yakin akan non aktif kan member ini ?\');'));
                        if ($dtmember->status) {
                            echo "<tr>";
                            echo "<td> $n  </td>";
                            echo "<td> $dtmember->email  </td>";
                            echo "<td> $dtmember->nama_depan $dtmember->nama_belakang  </td>";
                            echo "<td> $dtmember->telp  </td>";
                            echo "<td>$link_lihat $link_non_aktif </td>";
                            echo "</tr>";
                            $n++;
                        }
                    }
                    ?>
                </tbody>
            </table>   

        </div>


        <div id="tabs-2" style="padding: 10px 2px 2px 2px;">
            <table id="laporan2" class="display"  >
                <thead>
                    <tr>
                        <th width="5%">No</th>
                        <th width="20%">Email</th>
                        <th style="width: 200px;">Nama Member</th>
                        <th width="10%">Telp</th>
                        <th width="5%">Operasi</th>
                    </tr>          
                </thead>
                <tbody>
                    <?php
                    $n = 1;
                    foreach ($list_member as $dtmember) {
                        $link_aktif = anchor('admin_member/status/' . $dtmember->id . "/1", $img_aktif, array('onClick' => 'return confirm(\'Ubah status Aktif untuk member ini ?\');'));
                        $link_lihat = anchor('admin_member/detail/' . $dtmember->id, $img_lihat);
                        $link_hapus = anchor('admin_member/delete/' . $dtmember->id, $img_delete, array('onClick' => 'return confirm(\'Apa anda yakin akan menghapus data ini ?\');'));
                        if (!$dtmember->status) {
                            echo "<tr>";
                            echo "<td> $n  </td>";
                            echo "<td> $dtmember->email  </td>";
                            echo "<td> $dtmember->nama_depan $dtmember->nama_belakang  </td>";
                            echo "<td> $dtmember->telp  </td>";
                            echo "<td> $link_lihat $link_aktif $link_hapus </td>";
                            echo "</tr>";
                            $n++;
                        }
                    }
                    ?>
                </tbody>
            </table>                  
        </div>
    </div>        


    <div class="clear"></div>
</div>